adding doctype, clearing up head tag, eliminating some html parser warnings
Chaging the load order of javascript, using document ready to run script