Simple javascript to read and split the URI and sets a session cookie which record this data