fix camera demo js