Added some jQuery helper functions