IE8 javascript error fixes

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