add javascript support