file.js, watch(): add _remove_all_pending() function to remove all pending files