I don't think it's a good idea to store the API keys on client side. Even if you obfuscate the keys, at some point you will make the API call and send actual keys. Attackers can easily retrieve the keys using something like Firebug.
In my opinion the best way to do this is creating a wrapper in the backend. You can make an AJAX request to your backend which then calls the actual API using your secret keys.