changed; js creates dom and snake works