Fixed JS not running on link click, only refresh.