working on the js