update coffeescript syntax to fix js defect compiled .indexOf(event)) > -1)