Diary frontend adjusting to require.js -  finished