This wouldn't be done in Javascript, it would be done in a server side language (c#, vb.net, java, php, ruby, python etc), there are libraries available for all the listed that allow interaction with Excel.
Though I'm not sure that you would need to un-protect the sheets to read them as a database
Bookmarks