moved layer/update to separate js file, partially moved to new rest api - bbox read