Fixing bug when removing entries

It seems the remove function that gets called from onclick removes the dom element rather than the file. Renaming the function seems to resolve the issue.