added require to JS files and added require.js