Is there a better way to access transients using javascript

Transients should be used for short (for varying definition of it) time caching, and they are by design not reliable. From your description it sound like you are using them in a manner they were not designed to support and therefor probably the “best” for you is to not use transients at all.