added serializeJSON plugin from @tothemario