Made some small changes to BMI.js, and started to convert code to object oriented class.