new javascript (dispacher)