add currentPathname to javascript common.js