update, correct json format and adapt need.js