fixed linking programs with javascript ui