Fix javascript error of undefined update_loggedin_access(). Bug 1315226

Change-Id: Idc73abd321d10330435218b09482a167f4d54731
Signed-off-by: Son Nguyen <son.nguyen@catalyst.net.nz>