Changed everything. Added factory function and corresponding infoWindow.html template. Removed stuff from current init function. Map probably wont work