Update board.js

Fixing the board.js example to not throw an error and work as expected.