@VizuaaLOG 
Please edit your code in Brackets with the default JSLint on. You will see some JSLint errors on this line telling you to have exactly one space after `function` and should not have extra white spaces before `.on`.