adding backend javascript file

first cut of backend javascript communication