edited print statements for debugging IE9
IE9 returns empty string if no prefix; other browsers return null
add  to console.log