Some fixes in example section of Javascript documentation.