cytoscapejs.html: Fixed a problem where set_weave_viewport would get added as a callback multiple times; removed various logging messages, rearranged some code.