Message passing framework with google's java script engine attached to it to query