Worked out how to run RequireJS and handle errors