class work-on angular JavaScript