Performance oriented changes

I've re-factored the class with a particular focus on the performance associated when looking up webjar assets.