learning JavaScript 1.0