add javascript for next assignment