tried to use jquery and jsdom to append data to the index.jade file but failed