I have a sliding puzzle game that works fine. Once the puzzle is completed a congratulations message pops up. What I am trying to do is add a button to take the user to a new puzzle.

Below is the code that is called once the puzzle is completed, however, nothing happens, I have tried writing these different ways but to no avail

```
  onCompleted: function(){
                $("p.mini").removeClass('mini')

                $(".sp_box") .(function() {
                    document.location.href = "level2.html";}).html('TEST');
                $(".message-box > div > p").html("Congratulations!");
                $(".sp_box").addClass('visible');
            }
        }

```