tidy up of js
Merge pull request #134 from JasonBenn/cleanup_player

tidy up of js