[#60826864] rearrange javascript to avoid double event listeners (this fixes the menu on mobile issue)
Merge branch 'cop-p2-2013' of https://github.com/vuwfg/knots into cop-p2-2013