The codes work properly on HTML5 but when I copy them to the Angular4 HTML template, I get an error about core.min.js. How can I run the demo on the Angular4 application?