Update smart_layers.js