Do not display scripts if widget isn't active, allow for use in any sidebar, fixes for localization, reset the query after use so it doesn't bleed info into next widget put .js in the footer for faster loading