jquery implementation for step-2 added