Better js support, use ag if available