improve javascript loading performance.