Fixing runtime error when "module" is undefined

A variable must be defined in order to use in an "if".
Merge pull request #2 from david0178418/master

Fixing runtime error in Juicy when "module" is undefined