making a Javascript to do app