Add jsTestDriver configuration, update docs. Fix minor logic error.