Fix loading time of js file