Fix js for function to display sensorML editor.