fixed currentTarget and String.replace capture value differences between browsers

removed test code from specs

removed console.logs from tests