I just copied in my code, should work...

The player function were all crashing it in the browser when I was testing it, so I've just temporarily commented out everything.