fix js, so add ability to perform delete actions