added new debug functions to js api
renamed gameBoard to board, random to rng, lbMain to mainWindow