Fixed content-type check

Rails returns "application/json; charset=utf-8" for content-type, this fixes get.js for this case.