Multi-step form implemented using javascript