strict comparison on typeof define

This ensures compatibility with the r.js optimizer's namespace functionality, and it's just good practice :]