Attach CONST values directly as JS values instead of using callbacks. See #305