update for configurable sensors in javascript