Added customizable definitions in javascript and individual datastream calls