Fix for phones

use of max-device-width instead of max-width
Some clean up in main.js
shorter display-time for the alerts
Merge pull request #3 from Terreii/master

Cleaning & use of max-device-width for phones