Fixed bug in detecting for devices with smaller screen sizes; loading screen is now displayed before loading the bulk of the map html content