[js] support @:native method names that are invalid JS identifiers