Fixed error with dog.js