need to pass domain as a string so javascript can recognize it