fixed bug, that JavaScript Admin function are shown, if not logged in