[fix] Corrected the requirejs inheritance.

Fixes cayasso/primus-emitter#14 cc @ruimarinho