Accept only JavaScript objects as an input