Modified the style of the code using a javascript beautifier.