initialize $result
add timestamp to function call; fix trash.js to handle multiple delete operation at once