stripping leading offset from js extracted from HTML