refactor JS to camelcase style