start to implement the support for JavaScript