fixed spelling and one undefined error
javascript now "automation friendly"
javascript precheck partially working - disabled

just uncomment //$(document).ready(initialize()); to activate it. turned
off because it interferes with php-initiated error checking
Merge pull request #188 from Align/Graham-march-28

Graham march 28