Beautify js code