Fixed the mousewheel was not working correctly in firefox / opera.

Re-formatted source code.

Corrected a wrong usage of jQuery.extend.