javaScript file for flame detection sensor