fixed Lavacharts Tests
all green!
ran php-cs-fixer over source
refactored JavascriptFactory a little