updated plugins.js with slider function.