Add click event to mobile home button
Moved some JS around