fixed js error on menu with absolute path