Added manager, datastructures and started on the JS for the manager.