fixing formatting of javascript examples