use map to generate urls when loading js/css in XPI

it actually returns something, unlike foreach
better 22599a8