Weird $ Variable. On further inspection seems to be a light implemtation of a variable from ExtendScript?? http://jongware.mit.edu/idcs6js/pc_%24.html
$.evalFile(filename:String, timeout:int) // not sure if fw cares about timeout
$.getenv(str:String) // gets enviroment variables...interesting
Fireworks Document
dom.saveAllAsync()
dom.saveDocumentAsync()
dom.saveDocumentAsAsync(doc, saveAsCmd:Boolean)