Moved renderer.js from lib to ui
Made script loading order independent of actual dependencies