Updated js file to test more code