Updated the JS to use Require js