Light traits in javascript with some syntax sugar