Moved Level stuff to Level.js