Code tidying.

Corrections to spaces, indentations, quotation marks. 
Refactor of jQuery to JavaScript (jQ left in place as comments, just in case).