changing textfile.js delete fn to remove since delete is a reserved word