playing with javascript math