Added Mike's HACK code to start creating JS config