Add js functionality for history, maps-id, history-id