fix for min version of js