Fix: Add prototype methods to global scope (fixes #700)