controls js draw