Random working code
Hardcoded working javascript

I hardcoded the javascript and it works fine.