Adding in objects in js and web api