add js to open and hide board