replaced define with a requirejs call