Lib for safe access to JavaScript model