Fixed Remove Onclick

JS now properly suppresses links if it's set to remove elements on
click.