fixed form js bug