Director perfect version for js engine.