add `history` global to js config