First shot in managing controls from JS (cf #62)