made elapsed.js a separate script.