changed sizes around to optimize for smaller screens, updated behavior of js