Introduced requirejs. Reworked structure and roles of scripts into "Controller", "App" and "View"