refactor to use wp-json-client

also get rid of console.log alias, `p`