Added JavaScript events