make adding/removing featured image instant with javascript