I have a PHP-based web application that monitors the status of a process and displays a page with that status. Users can click a button on the page to update the status. However
using underscore.js this is as easy as:
var func = _.debounce(function(x) {return x * x}, 60000);