Simple mobile device detection using Javascript