added layer.js