added commenting to js