Small starter programs in javascript