Extract Javascript from page