cleanup board.js