use shared js file instead of copying