Correct typo on Javascript.
Allow the class to be defined inside the options.