Object with strict type checking for JavaScript