Create resizeAndCenter2.js