Changed m to cm in bmi.js and started refactoring into constructor.