[DOC] Clarification of helper template samples and general doc gardening

Changed helper examples under Resolver post to make it easier to read and follow (e.g. not re-using .toUppercase() and changing example.js to trim.js to have file name match what helper is doing). Also did general doc gardening to make things easier to read by formatting two sections into tables.