if (data.match(/[0-9]+$/)
there is an error in this line
Omit the semicolon.
(Also, please use the
tags when posting code so we don't have to see winking faces in your code. ;) )