make config array identical in structure to JS options