Move out hover preview menu item label to strings.js for localization.
Remove unused variables and clean up some variable declarations.