Boolean Minimizer implemented in JavaScript