initial javascript outline