Event hanslers move to js