Use javascript to initialise the board