Requirejs modification in returning objects in stead of functions