optimized to include only necessary js files