Added javascript to enable tag sorting