Naib,
The postload.js is for loading JS classes to the WAB app after everything is done loading in WAB. When dealing with adding a layer to the map you should work with the MapManager or develop a custom widget to add layers to the map. The postload.js does not have any hooks to the map or anything you would need to add a layer to the map.