remove JS.hasKey(); it is extremely important that foo.bar