add dataType: 'json' to ajax calls or firefox will interpret response as
a string. Using $.getJSON should work but firefox still treats response
as string