replaced JavaScriptSerializer serializer  to var serializer