Update dynamicScaling.js