initial javascript gotchas