worked on the js