History JS for custom URLs and titles in profile