You can use plugin to automatically bind decorators to function properties in the class
Collection of common tool functions in javascript