got the js reading the mongo variables