removes javascript code for old card form