extract doctests from JavaScript block comments