Added ability of setting JavaScript configs with setJsConfig() method.