[Issue #91] error checking for config
[Issue #91] mock js and test page