JS loader for chrome extensions