fix js on draw page