script file optimization

combined nav function for both mobile and main
home appliance page