Editor - use $.getScript()
Editor -explicitly call the Spice function
Editor - remove duplicate code