API deco + new javascript