Simplify options.js by making use of jQuery.