This javascript factors quadratics of the form