init version of connector for JavaScript (implemented by Jan Rudovsky)