Moved js include into different hook. Modified JS to only run if bfa_vars is defined - this was causing error alert on widgets page.