fixed errors and added angular-material.js to index