add generated javascript for demo