add some javascript debugging snippets