adds ui alert service to javascript