javascript formatter introduced and applied in the source.
reference refactor fix - this wasnt visible inside an anonymous function