adding modifications to make feature tests work with js