Standardised line endings
Minor config fixes
Javascript updates
Braces on a new line
Improved comments
Corrected indentation and comments
Minor tweaks and pagination fixes