format js according to style guide