Implemented require.js for JS module management