[js] change method name to camelcase