keeps track of time of seconds in an object
//time object that gets called function timeobj(){ this.date = new Date(); this.seconds = function(){ return (new Date().getTime()-this.date.getTime())/1000; }; }