put canvas in iframe, when updating code iframe is removed and reinserted to terminate all previous javascript