Added some logging in tinyg.js