extract JS from HTML