Added require() function
Merge pull request #2 from injoin/require

Added require() function