javascript for usermanager