Fixed the javascript clearing bug when added input forms