making some progress to integrate JS