javascript engine fixed #2