Auto-close register box on mobile devices (< 590px wide)

Ready for another pull request? This is intended to close the register box on devices with smaller screens, that way the map can be seen clearly. **Disclaimer**: I haven't been able to test on mobile yet, just by resizing desktop Chrome.

It can be debated as to whether or not this is desired functionality, so let me know what you think.