Update Trait.js

Added toString method