made the code correct for angular (basicly just reformated it)