use jQuery to update inputs
use AJAX request to retrieve longUrl and open link