working example -using diff js deps