added js and template for the essay delete and etc