RA-456: Home page apps based on session location

These require expressions actually need to be able to work with pure Javascript, without counting on java methods of things in the contextmodel. So this test example is not right. But we may need to chat about what this should actually look like.
Can you think of a way to rewrite this as pure JavaScript?