add .jshintrc, change homegrown assertions to use node assert module