https://stackoverflow.com/questions/53482324/how-can-i-use-javascript-code-in-angular-7