Added function injection annotations to allow minification of the library