Use requirejs for objects