add layers.js to index