Ajax POST in native JavaScript to work around jQuery error in application