returned to javascript coding