make ajax get work on all pages