js formatting
js refactor