Simple and lightweight traits library for javascript