refactored for ExecJS usage
execjs ready