Misc

Changed argument order of applyTextLengthBias so match
applyIntrinsicBias. Named some anonymous inner functions. Use full
variable names instead of abbreviations in a few places. Avoid scoring
image elements, score the parent instead. Minor changes to list of
attributes for attribute bias calculation. Fixed a substantial bug with
updateScore.