adds the js written so far