Updated determinant calculation to mach Flash Player functionality