Update JavaScript, update article CSS

- Converted dynamicScaling() into an object DynamicScaling