mapfishapp - fixed instanceof syntx + record cannot be instanceof OpenLayers.Layer.WMS + better formatting