Add callback to register a LateWin handler from Javascript