Fixing bug that was causing name argument to be ignored (jshint thinks "name" is a global for some reason)