Add typeof so it doesn't throw module not defined error