Do I need to rewrite my client library in Javascript?
===

For my IOS Application, the client interacts with the server through a fairly substantial client library.  I am recreating the app on a website, and I was wondering if I needed to rewrite this library in javascript.  Would it be possible to say, transfer the original static client library to the client through local storage and somehow execute it?  This is just speculation.  Any ideas for a possible solution would be very helpful.

Thanks in advance