History management for Flight JS