convert to required js style