setting datatype in ajax call fixes json problem

this is needed in .ajax:

dataType: 'json',
contentType: 'application/json',

Without those, the parsing was failing on rtdev