change to javascript