Fixed api calls. Wrong id names in index.jade.