Convert Javascript links to buttons.