Removed moduleId parameter of define function to ensure it works well in AMD loader
Updated examples to use a real AMD loader