Fixes to javascript objects.