Refs #4494: Registers elgg JS object as AMD module.