improve automatic js include