fix for footer js not executing on non-root