Make compatible with requirejs AMD modules