extract all js from view