Fix minor bug where wrong js file was fetched