Updated JS libraries and refined hit detection.