fixes for ie, renamed getValues to standard toJSON