a Ring like framework of JavaScript