Fixed RegEx and put javascript into drop down

Fixed regex error that would not accept double digit numbers with a zero
at the end (ie 10). Also changed the select to be displayed using do
with loop