The division sign is correct, but your equation or values may not be.
Try breaking the calculation up into sections:
var temp1 = Math.floor(365.25 * (yr + 4716));
var temp2 = Math.floor(30.6001 * (mo + 1));
var temp3 = 2 - Math.floor(yr / 100);
var temp4 = Math.floor(Math.floor(yr / 100) / 4)
var temp5 = hr24 + mn / 60 + (sc) / 3600 - (tz + dst);
varJD = temp1 + temp2 + dy + temp3 + temp4 - 1524.5 + temp5 / 24;
Then either use a debugger to look at the values, or output them to your page so you can see exactly what is going on.
I have no idea what that calculation is supposed to give you, or a clue as to the values you are feeding it, so I can't fix it for you!