Got rid of buggy yepnope spaghetti, however mobile detection really should be driven from the server.