fixed currentTarget and String.replace capture value differences between browsers

removed test code from specs

removed console.logs from tests

incremented foo element test ID

moded currentTarget fix