title: Is there a JavaScript function that reduces a fraction
body: <p>say we have fraction <code>2/4</code>, it can be reduced to <code>1/2</code>.</p>
  
  <p>Is there a JavaScript function that can do the reducing?</p>