js - enable use of strings in permit statements