added a simple requirejs function