fixed selector for menu appending, new jquery, trim text on replace to prevent 'double spaces'