Added javascript to dynamically set the textboxes