Moved the togglePlayPause call to main.js

Moved the function that toggles the visibility of the play/pause button
to the new functions in main.js