compiling js bug fix for demo