Extract javascript from html file