Added require.js and changed plugins structure