add data to js event