Javascript code for BMI