Generated connections by java script to be sure they are right