Update and add javascript demo support