Return object in prompt.js