IE8 javascript error fix. Fixes #88.

IE8 doesn't seem to like options.class.
Renaming it to options.classname fixes the issue.