Hey Tyler,
You don't need to import dojo since it's core library by the Mendix client,
you just need to remove line of import and adjust using of dojoquery
// BEGIN USER CODE
var elements = dojo.query(".mx-name-*
");
alert(elements);
// END USER CODE
Hope this help you
Best regards, Slavko