[*] FO: Allow to check if user is logged in js files

Allow to check if user is logged in js files