An AMD module for creating new histories and doing web application state management with multiple views