Fix examples so that they are valid javascript