Remaking the js