new js code