add some javascript support