added compatibility with browserjs, requirejs, etc

Hey there, 

Minor update to add compatibility for AMD modules..

Steve