Made snaketojs module and fixed lexer