Slot Maching JavaScript

Hi, I am trying to build an Slot Machine application. I found slotmachine.js source code online, but I can’t make it works in ionic. It’s my first time using this work-frame.

I already tried to:

mkdir /src/js
cp slotmachine.js /src/js


declare slotmachine: any;

in the src/pages/home/home.ts

But it’s not working.

can u link to the slotmachine.js page?