Cleaning up functions and adding chromeless player.