connecting with basic java script(basic anf fundamental level)