moving over to javascript