A little spring clean for JS validation

Fixed some missing trailing ;
Replaced mixed tabbed indenting to only use 4 space indent already used in the majority of files