Resolved issue with deleting queries

Fix #268
The issue correcting `main.js` to register the deleteQuery function.

Signed-off-by: Sheik Hassan <solergiga@yahoo.com>