Added javascript to order the plugins.