Testing Old Javascript Code within An Angular Application