Includes backport of openannotation/annotator#200 fix. Lines removed from flash.coffee as they are now obsolete.