use js control picture play