added some js for main page for mobile