Execute now or later
function execute (func, delay) { if (typeof(delay) !== "undefined") { window.setTimeout(func, delay); } else { func(); } }