JavaScript function to read css styling

JavaScript function to read css styling and then use it to manipulate
css