finished js hw