Update the Load controller to pass in the template along with the definition when creating a view, so the template path can be used for the default path for the .js file.