news js arhitecture