Magento : What to do if the continue button on the credit card form doesn’t work

In a recent project I came across a weird problem where the continue button on the credit card form of the one page checkout didn’t work anymore. As it turns out this is easily solved. Here’s what I did..