fixed ajax, added tables to the jade template