Adds mobile detection and js events