Making use of requirejs to keep the application in order

Using requirejs, ading library files, organising structure.