implement halfDoc.delete()
target ECMASCRIPT5 with closure compiler