Update layerplate.js