Added fix for Chrome (need to use :before not after)
Removed the dependency on $script as it's not required for the library