You are free to mod the game any way you please and distribute the changes. The game is written mostly in raw javascript, you got everything I have access to right in the game files