Added oldClass parameter to onchange callback so you can now see which class
was used before the current one.

Updated the demo accordingly.

Added a build script to create the minified version