working non-ghetto but still a little ghetto ajax