JS improvements

– Vanilla javascript now uses module pattern
– Vanilla javascript using faster selector methods where appropriate
– Seperated out currentAnchor check to it's own function
jQuery version parity with vanilla javascript version
jQuery version parity with vanilla javascript version

– Converted to JS Module pattern
Removed unnecessary DOM ready functions
Merge branch 'javascript-tidy'