Javascript snake version