Added some structure by introducing the RequireJS package manager.