added some javacript to be able to select the user from api