plugins.js: wrap our jquery code in a function.