move to js proto