fixed connection guide for javascript