Bugfix: Repaired the bug in changeElementType so it does not break the $ method chaining.