Removed redundant code
Admitted defeat
Node.js compatibilty

Also, delete dialog added.