added event js binding