fix javascript export of streamsource
del unused code