Added property for fail exit code to config template
Fix #52 Added jsfactory for instantiating browser with javascript