add an indicator
begin refactoring javascript