Refactor.
Remove artjs dependency.