updated setHomebButtonAction in js api