added scripting API doc for js scripting

also: cleaned some java doc generator's errors.