added require js wrappers