remove unconnected js part