minor correction to javascript for version