JSHint and add confirmation to deletion