How to compare two aspect ratios? : I want to compare two ratios using javascript. 
I have two ratios 12:3 and 12:2 and I need to compare both.

    if(12:3 > 12:2) {
       console.log(true);
    }

Something similar to above.Thank you.