bugfix

chaining doesn't work in pure javascript !