used contents of play/pause if statement alone inside of document.ready function