update documentation: add javascript block