Using JavaScript Making a to do application