fixed $.scripts.define
fix a mistake in a previous commit
added String.prototype.toa

it converts hex to ASCII string
added second argument to the delegate callbacks
added String.prototype.toh

it converts to hex
fixed expandWidth/expandHeight effects