adding same as above checkbox and js function