adding angular and getting devices from mongo