Refacored Gmboy.js