Fixed a bug where menu isn't displayed in Firefox.

As discussed in https://github.com/janpaepke/ScrollMagic/issues/138
Some Cleanup

Made some stuff a little more elegant