type check Javascript Object Literals in function parameters