2 step of js performance