updated js lib
added event for event collision