Moved require('crypto') into the module definition so that it would not break in Rhino