Added semicolon on one place. Changed double declaration of currentUrl