Utility to convert strings into JavaScript assignments.