Changed style to CSS to facilitate reuse. Also testing JS modularity.