Implement JavaScript colour theming