Adding in the option to change the dataType sent over ajax