Add fullscreenbutton to redirect window on Mac OS X and remove dead code
Fix redeclaration of let variable