adding javascript support