Traits for JavaScript