Minimalistic module implementation to be used in browsers to replicate functionality of node.js