Extract javascript resources