making adjustments to the js to add the menu trigger code within the functional scope of the mapping jquery function to $ to prevent WP conflicts.