Update createLayer.js