clean js code