use local var for _crypto

this fixes a problem "undefined var _crypto" i have when using this with webpack