Refactor JavaScript

- Reindent Javascript files
- Remove show function for chatControls because the div is never hidden
- Wrap application script in document.ready function
- Remove logfmt node requirement comment
- Edit scrollDown function argument naming
- Specify id in argument string for scrollDown calls