Separated combined var declarations to each have their own line, and formatted using HTML Prettify package to make everything more readable.
Fixed changes suggested by JSHint.