js control preview