Fix for conflict with imports of other resources

I've added a line that ensures that the inlining of extern resources only occurs for the CSS files, and also changed 'const' with 'var' to be compliant with the JS strict mode.
Note : in my usage I only had CSS to render inline, maybe other resources should be considered.

Anyway, thanks for bringing up this module :-)