No space between 'on' and '('. Running this through js-beautify should take care of these types of issues.