organised javascript.
special javascript refactor.