Moved plugin params to init function.

Needed for dependency injection in a real angularjs app.