js and demo update