generic document client in polymer