body mass index calculator in Javascript