Added requireModule method to index.js