JS Errors Fixed - Angular