Math in Javascript.