making website faster and creating common js file