Working on javascript modularization and unit testing.