modify handlerbars document