Fixed bugs in ajax call and deprecated calls

$.browser is depreciated in menu.js