How to find HCF & LCM in Javascript with Example Code