fix url in javascript for filters