first version of js and sample tws