Minor fixes to Python and PHP version; updated and synchronized interface in JavaScript version.