fixe issue #327 for js and coffescript