fixed javascript. added lock image

try it out by putting "example" into the form