51 encode snake js