fixed filterbar javascript for urls without any parameter