implement get() and eq() as in jQuery