js wow api (client side prototype)