[Menu]: a little patch for js script