Fixed #3

Math functions are provided by JavaScript library "Math".
Switched to using implicit height/width

Switched to using implicit height/width instead of custom min
height/width because it already exists and is set by some classes, such
as images and text.