Re-arranging files in order to implement require.js