added some useful jquery snippets