New javascript functions for getting info about active user