Format js code