demo: remove '/' prefix on URLs so demo can be more easily hosted in other directories
simplify layer/style loading and fix case where existing JS objects are passed in