add coursenum variable to Canvas js