mobile detection via js, no jQuery, returns value