Added JS-side validation
Moved javascripts to static dir