first encounter with JavaScript