new javascript module and controler