[Issue #91] add config to js