JS Architecture

[todo]