Replace uncommented dump calls with PROFILERLOG 

PROFILERLOG checks for window.dump existence and gDebugLog flag.