You need to change localhost
to your computer's IP address. In the mobile browser, your code is trying to connect to port 1614 on the device instead of port 1614 on your development computer.
Also make sure that your firewall is configured to allow requests to come in to that port; it's an easy step to miss. You might need to deploy your code to IIS on your computer to make this work, too. The built-in webserver for Visual Studio will only work from localhost (see Can't access Visual Studio project from IP, only http://localhost).