JavaScript MVC Url Shortener