I prefer an indent of 2 for javascript, because in front-end development we will have a lot of nested functions due to javascript nature, and to keep consistency across project I think we must have the same value for the indent size.