Correst some JS syntax
Refactor contributions controller