form template completed.  fix javascript bug.