base js wrapper for qualia