Cleaned up gaffa.js, fixed view insersion bug