Abstract jquery ajax calls, more idiomatic response hashmaps