Added javascript to make filter url