jquery implementation for step-1 added