hacky, but I do not see a better way to do this. JavaScript is not my thing.