Object-oriented JavaScript adapter library for online molecular visualization