draw board with js