Actually, I figured it out and it works now!!
Check out the link for the updated (and working) version.