Improve JS for responsive menu

I have improved the Javascript/jQuery used for the responsive menu to
handle the menu button class. I have also moved this code to a seperate
file instead of using it inline.