start counting in javascript