Fix for presenter view on Firefox (issue 167)

Also includes a second commit to clean up some trailing whitespace. Not passionate about that one, feel free to drop it if you don't want that change.