Conditionally load JS user object