optimized js file with share code