Use correct variable to define javascript settings.

Fixes fadein/fadeout