Actually made it use jQuery

This is much all so much less hacky now.  Also it now validates user input.