Adding board.WriteJson
Organizing main.js