Added .DS_Store to .gitignore, refactored player.js

@dm-istomin @beatrixbetsycarroll Check out my refactor please