Fix test errors: define replaceInput as a global variable
Add bower_components to .gitignore