js performace fix