Missing unsafeWindow for global function and missing user in user.username call.