Update for library JS

Update uses CSS instead of width and height tags for better optimisation
Merge pull request #7 from xCausxn/patch-1

Update for library JS