Enqueue template Javasacript in footer of page

This JS waits for document ready, so isn't required until the DOM is done loading anyway. Calling the script in the footer can help speed up the remainder of the page load.
Add documentation, remove closing PHP tag from functions
Escape column data for proper HTML output
Escape data from database on output to user's screen
Escape section parts for HTML output
Merge pull request #3 from washingtonstateuniversity/review

[PR] Add escaping of output for HTML when pulled from the database