js code clean