javascript form goin, fixed bug