got it! combo of split() and parseInt(). woo.