JS quote bug fix --KW