Fix for undefined bem variable in index.js