Some experiments in Javascript Math