Changed pathRegExp to include all subdirectories
Added type password for forms
Rewrote form/field code