Fix including external JS files when debug_assets is set to true