updates to javascript utils