added javascript to cycle between steps and display text