form creator in javascript