workaround for JS compilation