Reorganised JS libraries
Can now add/remove datapoints from collections from detail view