checks for whether or not js/FormData exists before attempting to extend-type