JavaScript LayerManager