Porting JS demo page