migrate to javascript