Extension methods to have better JavaScript coding