Snake in js.