js: bug for current link (/)