Added ajax, haven't tested it yet.