Update lib/cas.js

- Due to the \r character, sections must be updated to [1] and [2]
- Use both http and https protocol.