Better CommonJS/AMD support

Better CommonJS support similar to ftlabs/fastclick