US stock markets close on green side