Feature/java script port of c sharp code base