Refactored  js code. Add player to buttons.
Merge remote-tracking branch 'origin/master'