Switch to requirejs and knockoutjs for the plugin model template.