Playing around with JavaScript and the Pi