Division with JavaScript