'get' method was being overridden. changed var name to ajaxGet, ajaxPost