Update for library JS

Update uses CSS instead of width and height tags for better optimisation