Update jssavior.js

Fix for: Uncaught TypeError: Object #<Event> has no method 'indexOf'