javascript performance updates