Improved session cookie handling
Improved relationship.js based on linter