Fixed javascript to add the ability to create more than 1 menu