adding write_wpa_file.js