form generating js