Changed code to follow PEP 8 -- one import per line, commenting, line length changes.  JS file comments added as well