[BUGFIX] fix inclusion of external js in resources