setup requireJS for the front end.