Add small javascript sample for Sensor