Write tests for JS and set up Selenium for testing