Added some test case code for the javascript and board.