added jQuery permalink functionality