Migrate to backbone and requirejs