Update magLite.js

add on for multiple events