Get rid of all javascript links. Use jQuery click() instead.