Updated javascript to use placeholder value