Substituted addScripts sub-plugin with technique in issue #6