Updating Basic Javascript Examples