fixied jquery double execution bug and issue with footer links on nested urls