add basic support for jquery such that you dont need to use [0] or loop it up all the time