added unit test to extract js from html with leading whitespace