Fixed some javascript issues for advanced search and edited criterion to match current domein. Also changed facebook recommend to protocol independent (now also available on https)
Reversed the temporary fix, as did not solve the problem and it destroyted authentication.