fixed errors in jade loop and json data