updates to use object.keys for browser testing