Fixed mistakes in add js buttons branch