add handly js events