code cleanup
mainWindow.js: fix the play/pause button