Minor updates

Using jQuery 1.10.2.
Fixed get_avatar.
added is_ajax() function.