Changes to the js file

adding some TODO items as comments