migrated project to use requirejs to load javascript files