Class based JavaScript Mobile Device Detection