adding js file
Merge pull request #435 from jovanchohan/java_channel

adding js file
refactored node creation to use run_with_timeout
Merge pull request #436 from shatterednirvana/retry-on-create

refactored node creation to use run_with_timeout