Added config.js, JS files loading moved into index view

Added config.js file for require.js configuration. JS files loading
moved from layout into index view.