Remove msg argument from hideOtherUrl as it is unused
Use strict equality to compare with `true`
Fixing indentation
Removing unnecessary semi-colons and adding some where needed
Removing some unused variables/assignments