make static file example work against 0.8.0, add ajax call