updating js style guide (functions)