fix .elements() to accept the new element syntax

fixes #135
Merge pull request #140 from camme/fix-elements-syntax

fix .elements() to accept the new element syntax