Compatible with the new browser side javascript class pattern