JS to enable viewing public contract. Fixes #28