Playing around with the javascript