wms-v: listening to "loadedmetadata" event