improve js modules