JS improvments (update image preview and button label)