Small README change and modification to test.js

I changed test.js to only try to read certificate files if https is being used as the protocol.