- updated front-end JS to use require