r.js namespace support

Fixes https://github.com/23/resumable.js/issues/132