first go at porting over all the necessary files to requirejs format