Fix version comparison for js loading