(refs #464)Add extension point to inject JavaScript instead of adding button