FREEPBX-1953 - use Javascript to check field length but only if the Javascript function exists