format js writing style

format js writing style