fixed currentTarget and String.replace capture value

... browsers

removed test code from specs

removed console.logs from tests