changed some br. calls to executing JS