changes to the REST and js